package com.peaksport.framework.metadata.filter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by jinbin_guo on 2017-12-19.
 */
@SuppressWarnings("serial")
public class FilterItemCollection implements Serializable {

    private List<FilterItemInfo> col = new ArrayList<>();

    public List<FilterItemInfo> getCollection() {
        return col;
    }

    public void addFilterItemInfo(FilterItemInfo filterItemInfo) {
        col.add(filterItemInfo);
    }

    public FilterItemInfo get(int index) {
        return col.get(index);
    }
    public int size() {
        return col.size();
    }

    public boolean isEmpty() {
        return size() == 0;
    }


}
